<?php echo $header; ?>
<div class="content">
<div class="bodyLeft">
	<?php echo $column_left; ?>
</div><!-- end body left -->
<div class="bodyRight">
    <?php require_once("catalog/view/theme/fritids/template/slideshow/slider.php"); ?>
    
    <div class="body-content">
    	<div class="body-col" id="body-col-1">
            <div class="heading">
                <h2>Velkommen</h2>
                <h3>Det er en kendsgerning</h3>
                <img class="imgTemp" src="catalog/view/theme/fritids/image/imgTemp1.png" />
                <div class="clear"></div>
            </div>
            <div class="body-col-content">
                <p><?php echo $content['text']; ?></p>      
                <a class="more" href="<?php echo $content['readmore']; ?>">Mere</a>
                <div class="clear"></div>
            </div>
        </div><!-- end body col -->
        <div class="body-col" id="body-col-2">
            <div class="heading">
                <h2>Nyheder</h2>
                <h3>Det er en kendsgerning</h3>
                <img class="imgTemp" src="catalog/view/theme/fritids/image/imgTemp2.png" />
                <div class="clear"></div>
            </div>
            <div class="body-col-content">
            	<?php foreach($contents as $content){ ?>
				<div class="home-news">
                	<div class="home-news-thumb">					 
                    	<a href="<?php echo $content['readmore1']; ?>"><img src="<?php echo $content['image1']; ?>" /></a>
                    </div>
                    <div class="home-news-content">
                    	<h2><a href="<?php echo $content['readmore1']; ?>"><?php echo $content['title1']; ?></a></h2>
                        <p><?php echo $content['text1']; ?></p>
						
                        <a href="<?php echo $content['readmore1']; ?>" class="more">Mere</a> 
                    </div>
                    <div class="clear"></div>					 
				</div>
                 <?php }  ?>
 
                
            </div>
        </div><!-- end body col -->
    </div>
</div><!-- end  body right -->
<div class="clear"></div>
<div class="homepage-partner">
	<div id="homepage-partner-container">
        <ul id="homepage-partner-list">
        <?php 
				$query ="SELECT gallery.gallery_id, gallery.image, gallery_description.meta_description, gallery_description.description, gallery_description.web_link, gallery_to_category.gallery_id, gallery_to_category.category_id  FROM gallery, gallery_to_category, gallery_description WHERE gallery.gallery_id=gallery_to_category.gallery_id AND gallery_to_category.category_id=45";
				$q=mysql_query($query) or die(mysql_error());
				$rows=mysql_num_rows($q);
				if ($rows==0)
				{
					echo "<h1>Ingen partner at vise<h1>";
				}
				else
				{
					while($temp=mysql_fetch_assoc($q)){?>
								
				<li><a target="_blank" href="http://<?php echo $temp['web_link']; ?>"><img src="./image/<?php echo $temp['image']; ?> " width="97" height="55"/></a></li>
					<?php }
				} 
				?>
        </ul>
    </div>
    <div class="clear"></div>
</div><!-- end partner homepage -->
</div><!-- end div content -->
    
<?php echo $footer; ?> 
</div><!-- end container -->
</body>
</html>